package com.sdweizan.sdk.bytedance.bean.bill;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseRequest;
import com.sdweizan.sdk.bytedance.constants.BdConstants;
import lombok.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BdTradeBillRequest implements BdBaseRequest {
  // 商户号
  @JSONField(name = "merchant_id")
  private String merchantId;

  // 和商户号绑定的 thirdparty_id
  @JSONField(name = "thirdparty_id")
  private String thirdPartyId;

  // 交易完成时间，格式：yyyyMMdd/yyyyMM
  @JSONField(name = "bill_date")
  private String billDate;

  // 账单类型，包括 payment:支付账单,
  // settle:分账账单，refund:退款账单，return:退分账账单，withdraw:提现账单，rebate:返佣账单，annual_rebate:年框返佣账单
  @JSONField(name = "bill_type")
  private String billType;

  @Override
  public String requestUri() {
    return BdConstants.API_HOST + "/api/apps/bills";
  }
}
